import request from '@/utils/request'

// 查询takeClass列表
export function listTakeclass(query) {
  return request({
    url: '/teacher/takeclass/list',
    method: 'get',
    params: query
  })
}

// 查询takeClass详细
export function getTakeclass(takeclassId) {
  return request({
    url: '/teacher/takeclass/' + takeclassId,
    method: 'get'
  })
}

// 新增takeClass
export function addTakeclass(data) {
  return request({
    url: '/teacher/takeclass/add',
    method: 'post',
    data: data
  })
}

// 修改takeClass
export function updateTakeclass(data) {
  return request({
    url: '/teacher/takeclass/update',
    method: 'post',
    data: data
  })
}

// 删除takeClass
export function delTakeclass(takeclassId) {
  return request({
    url: '/teacher/takeclass/' + takeclassId,
    method: 'post'
  })
}
